package randomTest;

import java.util.*;

public class Shuffle {
    public static void main(String[] args){
        List<Integer> nums=new ArrayList<>();
        for(int i=0;i<100;i++){
            nums.add(i);
        }
        Collections.shuffle(nums);
        for(int i=0;i<1000;i++){
            try{
                System.out.println(nums.get(i));
            }

            catch(IndexOutOfBoundsException e){
                System.out.println(e.getMessage());
            }
        }

    }
}
